/**
 * 
 */
package com.feonix.designPattern.singleton.sample4;

/**
 * 使用类加载器来保证单例初始化的安全性
 * @CopyRight (c)1993-2017
 * @Project common_practice
 * @Comments 请输入该类的描述
 * @NameSpace com.feonix.designPattern.singleton.sample4
 * @Author Feonixzw
 * @CreateDate 2018年1月31日
 */
public class Singleton {

	private static class SingletonHolder {
		private static final Singleton SINGLETON = new Singleton();
	}

	private Singleton() {
	}

	public static final Singleton getInstance() {
		return SingletonHolder.SINGLETON;
	}

}
